LOCAL_PATH:=$(call my-dir)

# Link to libX11
include $(CLEAR_VARS)
LOCAL_MODULE := libX11
LOCAL_SRC_FILES := ../../$(LOCAL_MODULE)/libs/$(TARGET_ARCH_ABI)/$(LOCAL_MODULE).so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../$(LOCAL_MODULE)/include
include $(PREBUILT_SHARED_LIBRARY)

# Now compile the stuff
include $(CLEAR_VARS)

LOCAL_MODULE:=libXext

LOCAL_SRC_FILES := \
	eat.h \
	DPMS.c \
	MITMisc.c \
	XAppgroup.c \
	XEVI.c \
	XLbx.c \
	XMultibuf.c \
	XSecurity.c \
	XShape.c \
	XShm.c \
	XSync.c \
	XTestExt1.c \
	Xcup.c \
	Xdbe.c \
        Xge.c \
	extutil.c \
	globals.c

LOCAL_SHARED_LIBRARIES:=\
	libX11

include ../libX11/libX11.mk

include $(BUILD_SHARED_LIBRARY)
